package com.game.thrones.controller.output;

import java.io.Serializable;
import java.util.List;



//@ApiModel("分页输出包")
public class PageOutput<T> implements Serializable {

	private static final long serialVersionUID = 1L;

//	@ApiModelProperty("返回编码，0表示执行成功")
	private Integer code;
//	@ApiModelProperty("错误消息")
	private String err;
//	@ApiModelProperty("数据")
	private List<T> data;
//	@ApiModelProperty("每页条数")
	private Integer size;
//	@ApiModelProperty("页码，第一页为1")
	private Integer page;
//	@ApiModelProperty("总条数")
	private Integer total;
	public Integer getCode() {
		return code;
	}

	public void setCode(Integer code) {
		this.code = code;
	}

	public String getErr() {
		return err;
	}

	public void setErr(String err) {
		this.err = err;
	}

	public List<T> getData() {
		return data;
	}

	public void setData(List<T> data) {
		this.data = data;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Integer getPage() {
		return page;
	}

	public void setPage(Integer page) {
		this.page = page;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

}
